﻿using MediatR;
using SmartProduction.ErrorCode;

namespace SmartProduction.Write.API.Application.Commands.work_InvoiceCommand
{
    /// <summary>
    /// 基础信息新建命令
    /// </summary>
    public class work_InvoiceCreateCommand : IRequest<APIResult<object>>
    {
        /// <summary>
        /// 开票单号
        /// </summary>
        public string InvoiceCode { get; set; }

        /// <summary>
        /// 开票主题
        /// </summary>
        public string SystemTitle { get; set; }

        /// <summary>
        /// 发票类型
        /// </summary>
        public string InvoiceType { get; set; }

        /// <summary>
        /// 开票日期
        /// </summary>
        public DateTime InvoiceDate { get; set; }

        /// <summary>
        /// 销售订单
        /// </summary>
        public string SalesOrderBinding { get; set; } = "不绑定销售订单";

        /// <summary>
        /// 发票号
        /// </summary>
        public string InvoiceNumber { get; set; }

        /// <summary>
        /// 收票方
        /// </summary>
        public string Recipient { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }


        /// <summary>
        /// 开票总金额
        /// </summary>
        public decimal TotalAmount { get; set; } // 开票总金额
    }
}
